package com.lfy.test;

import org.springframework.stereotype.Service;

@Service
public class testaop {

    public <t> t test(globalMethod<t> globalMethod) throws Throwable{
        System.out.println("增强");

         return globalMethod.get();
    }


    @FunctionalInterface
    public interface globalMethod<T>{

      T get() throws Throwable;

    }


}
